/********************************************************************
	created:	2014/08/06
	created:	6:8:2014   11:45
	filename: 	cygwin
	file ext:	h
	author:		liyiysngg@gmail.com
	
	purpose:	cygwin specific config options:
	
	remarks:	
*********************************************************************/


#define XLL_PLATFORM "Cygwin"
#define XLL_HAS_DIRENT_H
#define XLL_HAS_LOG1P
#define XLL_HAS_EXPM1

//
// Threading API:
// See if we have POSIX threads, if we do use them, otherwise
// revert to native Win threads.
#define XLL_HAS_UNISTD_H
#include <unistd.h>
#if defined(_POSIX_THREADS) && (_POSIX_THREADS+0 >= 0) && !defined(XLL_HAS_WINTHREADS)
#  define XLL_HAS_PTHREADS
#  define XLL_HAS_SCHED_YIELD
#  define XLL_HAS_GETTIMEOFDAY
#  define XLL_HAS_PTHREAD_MUTEXATTR_SETTYPE
#  define XLL_HAS_SIGACTION
#else
#  if !defined(XLL_HAS_WINTHREADS)
#     define XLL_HAS_WINTHREADS
#  endif
#  define XLL_HAS_FTIME
#endif

//
// find out if we have a stdint.h, there should be a better way to do this:
//
#include <sys/types.h>
#ifdef _STDINT_H
#define XLL_HAS_STDINT_H
#endif

/// Cygwin has no fenv.h
#define XLL_NO_FENV_H

// boilerplate code:
#include <config/posix_features.h>

//
// Cygwin lies about XSI conformance, there is no nl_types.h:
//
#ifdef XLL_HAS_NL_TYPES_H
#  undef XLL_HAS_NL_TYPES_H
#endif
 




